package ru.nnstu.medialib.service;

import java.util.List;

import ru.nnstu.medialib.dao.ArtistDAO;
import ru.nnstu.medialib.dao.ArtistDAOImpl;
import ru.nnstu.medialib.domain.Artist;

public class ArtistServiceImpl implements ArtistService {
	ArtistDAO artistDAO;
	
	public ArtistServiceImpl() {
		super();
		artistDAO = new ArtistDAOImpl();
	}

	@Override
	public void addArtist(Artist artist) {
		artistDAO.saveArtist(artist);
	}

	@Override
	public List<Artist> listArtist() {
		return artistDAO.listArtist();
	}

	@Override
	public void removeArtist(Long id) {
		artistDAO.removeArtist(id);
	}

}
